package com.study.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/dist")
public class TestController {
	/**
	 * 访问地址http://localhost:8089/dist/index
	 *
	 */
	@GetMapping("index")
	public String deptAdd() {
		//model.addAttribute("info", "add方法测试");
		
		// @GetMapping没有带斜杠/，默认的视图是jsp/add.jsp页面
		return "dist/index"; 
	}
}
